<template>
  <div class="set">
    <div class="header">
      <van-icon name="arrow-left" @click="back()" />
      <h3>设置</h3>
    </div>

    <div class="con">
      <ul class="d1">
        <li>
          <span>个人资料</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li>
          <span>账户安全</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li style="border: none">
          <span>清除图片缓存</span>
          <p><van-icon name="arrow" /></p>
        </li>
      </ul>

      <ul class="d2">
        <li>
          <span>推荐设置</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li>
          <span>青少年模式</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li>
          <span>我想吐槽</span>
          <p><van-icon name="arrow" /></p>
        </li>
      </ul>

      <ul class="d3">
        <li>
          <span>常见问题</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li>
          <span>建议反馈</span>
          <p><van-icon name="arrow" /></p>
        </li>

        <li>
          <span>关于我们</span>
          <p><van-icon name="arrow" /></p>
        </li>
      </ul>
    </div>

    <router-link to="/mine">
      <button @click="tuichu">退出登录</button>
    </router-link>
  </div>
</template>

<script>
export default {
  computed: {
    // let list = localStorage.getItem("userPhone");
    // this.text1 = list;
    // user1() {
    //   return localStorage.getItem("userPhone");
    // },
  },
  methods: {
    back() {
      this.$router.go(-1);
    },
    tuichu() {
      localStorage.removeItem("user");
      this.$router.push("/log");
      console.log(1);
    },
  },
};
</script>

<style scoped>
.header {
  height: 0.5rem;
  width: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
}
.header .van-icon {
  font-size: 0.25rem;
  margin-left: 0.1rem;
}
.header h3 {
  width: 80%;
  text-align: center;
}
.con .d1 {
  width: 100%;
  background-color: #fff;
  margin-top: 0.05rem;
  border-top: 0.1rem solid rgb(245, 245, 245);
}
li {
  height: 0.5rem;
  line-height: 0.5rem;
  border-bottom: 0.01rem solid rgb(243, 243, 243);
  display: flex;
}
li span {
  margin-left: 0.1rem;
  width: 10rem;
}
.con .d2 {
  width: 100%;
  background-color: #fff;

  /* margin-left: 0.1rem; */
  border-top: 0.1rem solid rgb(245, 245, 245);
}
.con .d3 {
  width: 100%;
  background-color: #fff;
  border-top: 0.1rem solid rgb(245, 245, 245);
}
p {
  font-size: 0.13rem;
  color: #bdc0c5;
  width: 100%;
  text-align: center;
  margin-left: 1.5rem;
  font-size: 0.2rem;
}
.back {
  width: 100%;
  background-color: #fff;
  height: 0.6rem;
  line-height: 0.7rem;
  position: fixed;
  bottom: 0;
  text-align: center;
  font-size: 0.16rem;
  color: #c03131;
}
.ban {
  margin-top: 0.2rem;
}
button {
  width: 90%;
  height: 0.5rem;
  background-color: #ed7802;
  border: none;
  border-radius: 0.5rem;
  margin: 0.3rem auto;
  margin-left: 0.2rem;
  color: white;
}
</style>